package com.steel.yfmall.cloud.assistant.common.impl;

import com.steel.yfmall.cloud.assistant.common.mapper.DepotInfoBeanMapper;
import com.steel.yfmall.cloud.assistant.common.DepotInfoBeanService;
import com.steel.yfmall.cloud.assistant.po.common.DepotInfoBean;
import com.steel.yfmall.cloud.assistant.po.common.DepotInfoBeanExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 龙飞
 * @version 1.0
 * @since 2021/01/11 星期一 16:31
 */

@Service
public class DepotInfoBeanServiceImpl implements DepotInfoBeanService {

    @Override
    public List<DepotInfoBean> selectByDepotCodeList(ArrayList<String> depotCodeList) {
            DepotInfoBeanExample depotInfoBeanExample = new DepotInfoBeanExample();
            depotInfoBeanExample.createCriteria().andDepotCodeIn(depotCodeList);
            return depotInfoBeanMapper.selectByExample(depotInfoBeanExample);
    }

    @Resource
    private DepotInfoBeanMapper depotInfoBeanMapper;
}
